package org.flexspeedup.blog.events
{
import flash.events.Event;
/**
 * Fetches a static page
 */
public class GetStaticPageEvent extends Event
{
    //--------------------------------------------------------------------------
    //
    //  Class Properties
    //
    //--------------------------------------------------------------------------

    //--------------------------
    // ID
    //--------------------------
    /**
     * Unique id for this event.
     */
    public static const ID:String = "GetStaticPageEvent";
    
    //--------------------------------------------------------------------------
    //
    // Constructor
    //
    //--------------------------------------------------------------------------

    /**
     * Creates a new instance of the <code>GetStaticPageEvent</code> event 
     */    
    public function GetStaticPageEvent(key_name:String)
    {
        super(ID, true, true);
        _key_name = key_name;
    }

    //--------------------------------------------------------------------------
    //
    //  Properties
    //
    //--------------------------------------------------------------------------

    //----------------------------------
    //  key_name
    //----------------------------------

    /**
     *  @private
     */
    private var _key_name:String;

    /**
     * the page's key name on the datastore
     */
    public function get key_name():String
    {
        return _key_name;
    }

    //--------------------------------------------------------------------------
    //
    //  Overridden Methods - Event
    //
    //--------------------------------------------------------------------------

    /**
     * @inheritdoc flash.events.Event#clone
     */
    override public function clone():Event
    {
        return new GetStaticPageEvent(key_name);
    }
}
}